package com.gotop.sms.fysms;

import java.util.Date;

/**
 * VUserBacterinId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class VUserBacterinId implements java.io.Serializable {

	// Fields

	private Integer userId;

	private String cname;

	private Integer bacterinId;

	private String bacterinName;

	private Date orderTime;

	private Date injectTime;

	private Float price;

	// Constructors

	/** default constructor */
	public VUserBacterinId() {
	}

	/** full constructor */
	public VUserBacterinId(Integer userId, String cname, Integer bacterinId,
			String bacterinName, Date orderTime, Date injectTime, Float price) {
		this.userId = userId;
		this.cname = cname;
		this.bacterinId = bacterinId;
		this.bacterinName = bacterinName;
		this.orderTime = orderTime;
		this.injectTime = injectTime;
		this.price = price;
	}

	// Property accessors

	public Integer getUserId() {
		return this.userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	public String getCname() {
		return this.cname;
	}

	public void setCname(String cname) {
		this.cname = cname;
	}

	public Integer getBacterinId() {
		return this.bacterinId;
	}

	public void setBacterinId(Integer bacterinId) {
		this.bacterinId = bacterinId;
	}

	public String getBacterinName() {
		return this.bacterinName;
	}

	public void setBacterinName(String bacterinName) {
		this.bacterinName = bacterinName;
	}

	public Date getOrderTime() {
		return this.orderTime;
	}

	public void setOrderTime(Date orderTime) {
		this.orderTime = orderTime;
	}

	public Date getInjectTime() {
		return this.injectTime;
	}

	public void setInjectTime(Date injectTime) {
		this.injectTime = injectTime;
	}

	public Float getPrice() {
		return this.price;
	}

	public void setPrice(Float price) {
		this.price = price;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof VUserBacterinId))
			return false;
		VUserBacterinId castOther = (VUserBacterinId) other;

		return ((this.getUserId() == castOther.getUserId()) || (this.getUserId() != null
				&& castOther.getUserId() != null && this.getUserId().equals(
				castOther.getUserId())))
				&& ((this.getCname() == castOther.getCname()) || (this.getCname() != null
						&& castOther.getCname() != null && this.getCname().equals(
						castOther.getCname())))
				&& ((this.getBacterinId() == castOther.getBacterinId()) || (this
						.getBacterinId() != null
						&& castOther.getBacterinId() != null && this.getBacterinId()
						.equals(castOther.getBacterinId())))
				&& ((this.getBacterinName() == castOther.getBacterinName()) || (this
						.getBacterinName() != null
						&& castOther.getBacterinName() != null && this.getBacterinName()
						.equals(castOther.getBacterinName())))
				&& ((this.getOrderTime() == castOther.getOrderTime()) || (this
						.getOrderTime() != null
						&& castOther.getOrderTime() != null && this.getOrderTime().equals(
						castOther.getOrderTime())))
				&& ((this.getInjectTime() == castOther.getInjectTime()) || (this
						.getInjectTime() != null
						&& castOther.getInjectTime() != null && this.getInjectTime()
						.equals(castOther.getInjectTime())))
				&& ((this.getPrice() == castOther.getPrice()) || (this.getPrice() != null
						&& castOther.getPrice() != null && this.getPrice().equals(
						castOther.getPrice())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getUserId() == null ? 0 : this.getUserId().hashCode());
		result = 37 * result
				+ (getCname() == null ? 0 : this.getCname().hashCode());
		result = 37 * result
				+ (getBacterinId() == null ? 0 : this.getBacterinId().hashCode());
		result = 37 * result
				+ (getBacterinName() == null ? 0 : this.getBacterinName().hashCode());
		result = 37 * result
				+ (getOrderTime() == null ? 0 : this.getOrderTime().hashCode());
		result = 37 * result
				+ (getInjectTime() == null ? 0 : this.getInjectTime().hashCode());
		result = 37 * result
				+ (getPrice() == null ? 0 : this.getPrice().hashCode());
		return result;
	}

}